package com.moorror.cola.strategy.plugin;

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.Messages;
import org.jetbrains.annotations.NotNull;

/**
 * @Author jiyanghuang
 * @Date 2022/3/12 12:06 PM
 */
public class HelloAction extends AnAction {

    public HelloAction(){
        super("HelloWorld");
    }

    @Override
    public void actionPerformed(@NotNull AnActionEvent e) {
        Project project = e.getProject();
        Messages.showDialog(project,"Hello world!","Greeting",new String[]{},1,Messages.getInformationIcon());
    }
}
